package com.company.city;

import java.io.Serializable;
import java.util.List;


public class CityList implements Serializable {

    /**
     * areaId : 1
     * areaName : 北京
     * cities : [{"areaId":"35","areaName":"北京市","counties":[{"areaId":"430","areaName":"昌平区"},{"areaId":"431","areaName":"朝阳区"},{"areaId":"432","areaName":"大兴区"},{"areaId":"433","areaName":"东城区"},{"areaId":"434","areaName":"房山区"},{"areaId":"435","areaName":"丰台区"},{"areaId":"436","areaName":"海淀区"},{"areaId":"437","areaName":"怀柔区"},{"areaId":"438","areaName":"密云区"},{"areaId":"439","areaName":"门头沟区"},{"areaId":"440","areaName":"平谷区"},{"areaId":"441","areaName":"石景山区"},{"areaId":"442","areaName":"顺义区"},{"areaId":"443","areaName":"通州区"},{"areaId":"444","areaName":"西城区"},{"areaId":"445","areaName":"延庆区"}]}]
     */

    private String areaId;
    private String areaName;
    public String c;
    public String w;
    public String h;
    private List<CitiesBean> cities;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public List<CitiesBean> getCities() {
        return cities;
    }

    public void setCities(List<CitiesBean> cities) {
        this.cities = cities;
    }

    public static class CitiesBean implements IndexableEntity,Serializable  {
        /**
         * areaId : 35
         * areaName : 北京市
         * counties : [{"areaId":"430","areaName":"昌平区"},{"areaId":"431","areaName":"朝阳区"},{"areaId":"432","areaName":"大兴区"},{"areaId":"433","areaName":"东城区"},{"areaId":"434","areaName":"房山区"},{"areaId":"435","areaName":"丰台区"},{"areaId":"436","areaName":"海淀区"},{"areaId":"437","areaName":"怀柔区"},{"areaId":"438","areaName":"密云区"},{"areaId":"439","areaName":"门头沟区"},{"areaId":"440","areaName":"平谷区"},{"areaId":"441","areaName":"石景山区"},{"areaId":"442","areaName":"顺义区"},{"areaId":"443","areaName":"通州区"},{"areaId":"444","areaName":"西城区"},{"areaId":"445","areaName":"延庆区"}]
         */

        private String areaId;
        private String areaName;
        public String c;
        public String w;
        public String h;
        private List<CountiesBean> counties;

        public String getAreaId() {
            return areaId;
        }

        public void setAreaId(String areaId) {
            this.areaId = areaId;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public List<CountiesBean> getCounties() {
            return counties;
        }

        public void setCounties(List<CountiesBean> counties) {
            this.counties = counties;
        }

        @Override
        public String getFieldIndexBy() {
            return areaName;
        }

        @Override
        public void setFieldIndexBy(String indexField) {
            this.areaName = indexField;
        }

        @Override
        public void setFieldPinyinIndexBy(String pinyin) {
            // 需要用到拼音时(比如:搜索), 可增添pinyin字段 this.pinyin  = pinyin
            // 见 CityEntity
        }

        public static class CountiesBean implements IndexableEntity,Serializable {
            /**
             * areaId : 430
             * areaName : 昌平区
             */

            private String areaId;
            private String areaName;
            public String c;
            public String w;
            public String h;
            public String getAreaId() {
                return areaId;
            }

            public void setAreaId(String areaId) {
                this.areaId = areaId;
            }

            public String getAreaName() {
                return areaName;
            }

            public void setAreaName(String areaName) {
                this.areaName = areaName;
            }

            @Override
            public String getFieldIndexBy() {
                return areaName;
            }

            @Override
            public void setFieldIndexBy(String indexField) {
                this.areaName = indexField;
            }

            @Override
            public void setFieldPinyinIndexBy(String pinyin) {
                // 需要用到拼音时(比如:搜索), 可增添pinyin字段 this.pinyin  = pinyin
                // 见 CityEntity
            }


        }
    }
}
